package cn.iocoder.yudao.module.lfd.controller.admin.barber.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import javax.validation.constraints.*;

/**
* 理发师 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class BarberBaseVO {

    @Schema(description = "密码")
    private String password;

    @Schema(description = "号码", required = true)
    @NotNull(message = "号码不能为空")
    private String phone;
    @Schema(description = "便签", required = true)
    @NotNull(message = "便签不能为空")
    private String label;
    @Schema(description = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    @Schema(description = "昵称", example = "赵六")
    private String nickName;

    @Schema(description = "性别", required = true)
    @NotNull(message = "性别不能为空")
    private String sex;

    @Schema(description = "店铺", required = true, example = "11420")
    @NotNull(message = "店铺不能为空")
    private Long shopId;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "工作经验")
    private String works;


    @Schema(description = "代号")
    private String code;

}
